<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app"></div>
  
  <script type="module">
    import { reactive, effect } from './reactivity/index.js'

    const s = reactive(new Set([1,2,3]))
    const obj = reactive({a:1})

    effect(() => {
      console.log(s.size)
      // console.log(obj.a)
    })
    s.add(4)
    s.add(5)
    s.delete(5)

    // obj.a = 2
  </script>
</body>
</html>
